﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProExecute.aspx.cs" Inherits="ProExecute"
    MasterPageFile="~/Master.master" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <h1 class="DemoTitle">
        项目执行情况
    </h1>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
        </div>
        <%-- <div>
            <dx:ASPxHyperLink ID="ASPxHyperLink1" runat="server" Text="<<<返回到项目基本信息管理" NavigateUrl="ShowProject.aspx"
                Font-Size="Medium">
            </dx:ASPxHyperLink>
        </div>--%>
        <div>
            <dx:ASPxGridView ID="gvPro" runat="server" Width="100%" AutoGenerateColumns="False"
                DataSourceID="LSMDSPro" KeyFieldName="ID" OnHtmlRowCreated="gvPro_HtmlRowCreated"
                OnRowInserting="gvPro_RowInserting" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                CssPostfix="Office2010Blue">
                <SettingsText EmptyDataRow="没有记录" />
                <SettingsPager>
                    <Summary Text="当前第{0}页，共{1}页，{2}条记录" />
                </SettingsPager>
                <SettingsEditing Mode="PopupEditForm" PopupEditFormHorizontalAlign="WindowCenter"
                    PopupEditFormVerticalAlign="WindowCenter" PopupEditFormWidth="400px" EditFormColumnCount="1" />
                <Columns>
                    <dx:GridViewDataComboBoxColumn Caption="项目名称" FieldName="ProID" Name="t_ProID" VisibleIndex="0"
                        Width="100px">
                        <PropertiesComboBox ValueType="System.String" Spacing="0" Width="200px">
                        </PropertiesComboBox>
                        <EditFormSettings Visible="False" />
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataTextColumn FieldName="ExeID" VisibleIndex="1" Caption="项目阶段" Width="100px">
                        <PropertiesTextEdit Native="true" Width="200px">
                        </PropertiesTextEdit>
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="Money" VisibleIndex="2" 
                        Caption="使用资金(万元)" Width="100px">
                        <PropertiesTextEdit Native="true" Width="200px">
                            <MaskSettings Mask="&lt;0..9999999999&gt;.&lt;00..99&gt;" />
                        </PropertiesTextEdit>
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataMemoColumn Caption="用途" FieldName="Purpose" VisibleIndex="3" Width="200px">
                        <PropertiesMemoEdit Native="true" Width="300px">
                        </PropertiesMemoEdit>
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataMemoColumn>
                    <dx:GridViewDataTextColumn FieldName="Date" VisibleIndex="4" Caption="日期" Width="100px">
                        <PropertiesTextEdit Native="true" Width="200px">
                        </PropertiesTextEdit>
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataTextColumn> 
                </Columns>
                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                    </LoadingPanelOnStatusBar>
                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                    </LoadingPanel>
                </Images>
                <ImagesFilterControl>
                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                    </LoadingPanel>
                </ImagesFilterControl>
                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                    </Header>
                    <LoadingPanel ImageSpacing="5px">
                    </LoadingPanel>
                </Styles>
                <StylesPager>
                    <PageNumber ForeColor="#3E4846">
                    </PageNumber>
                    <Summary ForeColor="#1E395B">
                    </Summary>
                </StylesPager>
                <StylesEditors ButtonEditCellSpacing="0">
                    <ProgressBar Height="21px">
                    </ProgressBar>
                </StylesEditors>
            </dx:ASPxGridView>
        </div>
        <dx:LinqServerModeDataSource ID="LSMDSPro" runat="server" ContextTypeName="DAL.DataClassesDataContext"
            EnableInsert="True" EnableUpdate="True" TableName="Pro_Execute" 
            OnSelecting="LSMDSPro_Selecting" EnableDelete="True" />
    </div>
</asp:Content>
